home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / DiceSource / src / dmake / subs.c < prev    next >
C/C++ Source or Header  |  1997-09-09  |  529b  |  38 lines

  1. /*
  2.  *    (c)Copyright 1992-1997 Obvious Implementations Corp.  Redistribution and
  3.  *    use is allowed under the terms of the DICE-LICENSE FILE,
  4.  *    DICE-LICENSE.TXT.
  5.  */
  6.  
  7. /*
  8.  *  Misc. support routines
  9.  */
  10.  
  11. #include "defs.h"
  12. #ifdef AMIGA
  13. #include <exec/libraries.h>
  14.  
  15. Prototype int Running2_04(void);
  16. Prototype int align(int);
  17.  
  18. extern struct Library *SysBase;
  19.  
  20. Running2_04()
  21. {
  22.     if (SysBase->lib_Version >= 37)
  23.     return(1);
  24.     return(0);
  25. }
  26.  
  27. #endif
  28.  
  29. int
  30. align(n)
  31. int n;
  32. {
  33.     if (n & 3)
  34.     return(4 - (n & 3));
  35.     return(0);
  36. }
  37.  
  38.